package main;

import netengine.NetEngine;

import org.apache.log4j.Logger; 

import packet.PacketFactory;
import player.LoginManager;

import common.Utility;
 
public class Game 
{
	static Logger logger = Logger.getLogger(Game.class);

	public static void run()
	{ 
		logger.info("start intialize game server.");
		
		PacketFactory packetFactory = PacketFactory.getInstance();
		packetFactory.initialize();
		
		LoginManager loginManager = LoginManager.getInstance();
		loginManager.initialize();
		
		NetEngine netEngine = NetEngine.getInstance();
		netEngine.initialize(10);
		netEngine.openListenPort(9090);
		
		while (true) { Utility.sleep(2000); }
		// logger.info("game sever exit.");
		// System.exit(0);
	}
}
